package com.wwwc.index.web.servlet;

import java.io.*;
import java.text.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.ServletRequestWrapper;
import java.net.*;

public class ErrorPageServlet extends HttpServlet implements Servlet {

    public void doGet(HttpServletRequest request, HttpServletResponse response)
    {
	doPost(request, response);
    }

    public void doPost(HttpServletRequest request, HttpServletResponse response)
    {
	try {
	    response.setContentType("text/html");
	    HttpSession session = request.getSession(true);
	    String user_ip      = request.getRemoteAddr();	    
	    
	    PrintWriter out = response.getWriter();	    
	    String eid  = request.getParameter("eid");
	    out.println("<block ip='"+user_ip+"' times='10'/>");
	    System.out.println("ErrorPageServlet:user_ip="+user_ip+":eid="+eid);
	    System.out.println("ErrorPageServlet:DebugBean="+DebugBean.getInputParameters(request));
	    System.out.println("ErrorPageServlet:queryString="+request.getQueryString());
	    return;
	}
	catch(IOException e) {
	    return;
	}
    }
}






